//
//  Test.swift
//  PhotoBrowser
//
//  Created by zhangjianyun on 2021/2/20.
//

import UIKit

// MARK: print
public func xhLog<T>(_ message: T, file: String = #file, function: String = #function, lineNumber: Int = #line) {
    #if DEBUG
    let date = Date().string(withFormat: "yyyy-MM-dd HH:mm:ss")
    let fileName = (file as NSString).lastPathComponent
    print("[\(date) -- \(fileName) -- function:\(function) -- line:\(lineNumber)] -- \(message)")
    #endif
}
